﻿namespace TrinityEngine
{
    public static class Screen
    {
        public static Resolution currentResolution { get; private set; }

        public static float dpi { get; private set; }

        public static bool fullScreen { get; set; } = true;

        public static int width { get; private set; } = 800;

        public static int height { get; private set; } = 600;

        public static float aspect { get => 1.0f * width / height; }

        public static void OnResize(int width, int height)
        {
            Screen.width = width;
            Screen.height = height;
        }
    }
}
